/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 背景装饰元素 */
.background-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-heart,
.floating-eye,
.floating-hands,
.floating-star {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.floating-heart {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-eye {
  top: 20%;
  right: 15%;
  animation-delay: 1.5s;
}

.floating-hands {
  bottom: 20%;
  left: 15%;
  animation-delay: 3s;
}

.floating-star {
  bottom: 10%;
  right: 10%;
  animation-delay: 4.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.3;
  }
}

/* 主容器 */
.container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 头部样式 */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.title-icon {
  font-size: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.subtitle {
  color: #7f8c8d;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* 标签切换 */
.tab-container {
  display: flex;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 5px;
  margin-bottom: 30px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab {
  flex: 1;
  padding: 15px 20px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #7f8c8d;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab:hover {
  color: #3498db;
  background: rgba(52, 152, 219, 0.1);
}

.tab.active {
  background: #3498db;
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

/* 表单容器 */
.form-container {
  margin-bottom: 30px;
}

.form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.form-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.toggle-mode-btn {
  background: transparent;
  border: 2px solid #3498db;
  color: #3498db;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.toggle-mode-btn:hover {
  background: #3498db;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.input-group input {
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.input-group input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

.input-group select {
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  cursor: pointer;
}

.input-group select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
}

.input-group input::placeholder {
  color: #bdc3c7;
}

/* 按钮样式 */
.button-group {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.btn {
  padding: 15px 25px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
  background: #ecf0f1;
  color: #7f8c8d;
  border: 2px solid #bdc3c7;
}

.btn-secondary:hover {
  background: #d5dbdb;
  border-color: #95a5a6;
}

/* 视障人士特殊样式 */
.visually-impaired .voice-section {
  text-align: center;
  margin-bottom: 30px;
}

.voice-indicator {
  margin-bottom: 25px;
}

.voice-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3498db, #2980b9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.voice-circle.listening {
  animation: listening-pulse 1.5s ease-in-out infinite;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

@keyframes listening-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
  }
}

.voice-status {
  color: #7f8c8d;
  font-size: 1rem;
  margin-bottom: 20px;
}

.voice-controls {
  margin-bottom: 20px;
}

.btn-voice {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 18px 30px;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-voice.listening {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-voice:hover {
  transform: translateY(-2px);
}

.transcript {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border-left: 4px solid #3498db;
}

.transcript p {
  color: #2c3e50;
  font-weight: 500;
  margin: 0;
}

.accessibility-info {
  background: linear-gradient(135deg, #ecf0f1, #d5dbdb);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid #bdc3c7;
}

.accessibility-info h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.1rem;
  text-align: center;
}

.accessibility-info ul {
  list-style: none;
  padding: 0;
}

.accessibility-info li {
  color: #34495e;
  margin-bottom: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #ecf0f1;
  font-size: 0.95rem;
}

.accessibility-info li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* 底部样式 */
.footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
}

.footer p {
  color: #7f8c8d;
  margin-bottom: 15px;
  font-size: 1rem;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-icons span {
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}

.footer-icons span:nth-child(2) {
  animation-delay: 0.5s;
}

.footer-icons span:nth-child(3) {
  animation-delay: 1s;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 30px 20px;
    margin: 20px;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .tab {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .app {
    padding: 10px;
  }
  
  .container {
    padding: 25px 15px;
  }
  
  .title {
    font-size: 1.8rem;
  }
  
  .voice-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* 全屏指纹识别样式 */
.fingerprint-fullscreen {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  max-width: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fingerprint-fullscreen:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

.fingerprint-content {
  text-align: center;
  color: #2c3e50;
  padding: 20px;
}

.fingerprint-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.fingerprint-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.fingerprint-subtitle {
  color: #7f8c8d;
  font-size: 1rem;
}

/* 身份选择弹层 */
.role-chooser-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.role-chooser {
  width: 100%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e9ecef;
}

/* 新增：指纹注册高亮区域 */
.fingerprint-enroll-area {
  margin-top: 10px;
  width: 100%;
  min-height: 220px;
  border: 2px dashed #3498db;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(52,152,219,0.06), rgba(41,128,185,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.fingerprint-enroll-area:hover,
.fingerprint-enroll-area:focus {
  border-color: #1d6fa5;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
  transform: translateY(-1px);
}

.fingerprint-enroll-content {
  text-align: center;
  color: #2c3e50;
}

.fingerprint-enroll-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.fingerprint-enroll-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.fingerprint-enroll-subtitle {
  color: #7f8c8d;
  font-size: 0.95rem;
}

/* 新增：登录后页面样式 */
.dashboard-container {
  max-width: 800px;
  padding: 30px;
}

.dashboard {
  width: 100%;
}

/* 用户头部信息 */
.user-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  margin-bottom: 30px;
  color: white;
  position: relative;
}

.user-avatar {
  font-size: 3rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.user-info h2 {
  margin: 0 0 8px 0;
  font-size: 1.8rem;
  font-weight: 600;
}

.user-info p {
  margin: 0 0 5px 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.btn-logout {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(231, 76, 60, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: #e74c3c;
  transform: translateY(-2px);
}

/* 仪表板内容 */
.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.service-section,
.help-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
}

.service-section h3,
.help-section h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 紧急求助卡片 */
.emergency-requests {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.request-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  background: white;
}

.request-card.urgent {
  border-color: #e74c3c;
  background: linear-gradient(135deg, #fff5f5, #ffe8e8);
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.urgent-badge {
  background: #e74c3c;
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.request-time {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.request-description {
  color: #2c3e50;
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.request-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.request-details span {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.btn-accept {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* 服务统计卡片 */
.service-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #3498db;
  margin-bottom: 8px;
}

.stat-label {
  color: #7f8c8d;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 推荐服务卡片 */
.recommended-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: white;
}

.service-card:hover {
  border-color: #3498db;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.service-card h4 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.service-card p {
  color: #7f8c8d;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* 快速求助按钮 */
.quick-help-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.btn-emergency {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: none;
  padding: 18px 25px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-emergency:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.btn-voice-help {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: none;
  padding: 18px 25px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-voice-help:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-text-help {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  padding: 18px 25px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-text-help:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

/* 求助记录 */
.help-history {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.help-record {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 18px;
  background: white;
  transition: all 0.3s ease;
}

.help-record:hover {
  border-color: #3498db;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.record-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.record-status.completed {
  background: #d4edda;
  color: #155724;
}

.record-status.pending {
  background: #fff3cd;
  color: #856404;
}

.record-time {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.record-description {
  color: #2c3e50;
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.record-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.record-details span {
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* 无障碍设置 */
.accessibility-settings {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.setting-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2c3e50;
  font-weight: 500;
  cursor: pointer;
  font-size: 1rem;
}

.setting-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3498db;
}

/* 响应式设计 - 仪表板 */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 20px;
    margin: 15px;
  }
  
  .user-header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .btn-logout {
    position: static;
    margin-top: 15px;
  }
  
  .service-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
  }
  
  .recommended-services {
    grid-template-columns: 1fr;
  }
  
  .quick-help-buttons {
    grid-template-columns: 1fr;
  }
  
  .record-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .dashboard-container {
    padding: 15px;
    margin: 10px;
  }
  
  .user-avatar {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  
  .user-info h2 {
    font-size: 1.5rem;
  }
  
  .service-section,
  .help-section {
    padding: 20px;
  }
}

/* 新增：服务标签样式 */
.service-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.tag {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* 新增：设置网格样式 */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.setting-card {
  padding: 20px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: white;
}

.setting-card h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}

.setting-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2c3e50;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.95rem;
}

.setting-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #3498db;
}

/* 新增：服务历史样式 */
.service-history {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.history-item {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 18px;
  background: white;
  transition: all 0.3s ease;
}

.history-item:hover {
  border-color: #3498db;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.history-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.history-status.completed {
  background: #d4edda;
  color: #155724;
}

.history-time {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.history-description {
  color: #2c3e50;
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.history-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.history-details span {
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* 新增：求助统计样式 */
.help-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

/* 新增：常用服务样式 */
.common-services {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: white;
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: #3498db;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
}

.service-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-info {
  flex: 1;
}

.service-info h4 {
  color: #2c3e50;
  margin-bottom: 5px;
  font-size: 1.1rem;
  font-weight: 600;
}

.service-info p {
  color: #7f8c8d;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.usage-count {
  color: #3498db;
  font-size: 0.85rem;
  font-weight: 500;
}

/* 新增：设置组样式 */
.setting-group {
  margin-bottom: 25px;
}

.setting-group h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1rem;
  font-weight: 600;
}

.setting-group:last-child {
  margin-bottom: 0;
}

/* 新增：使用技巧样式 */
.tips-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tip-card {
  padding: 20px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: white;
  text-align: center;
  transition: all 0.3s ease;
}

.tip-card:hover {
  border-color: #3498db;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.tip-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.tip-card h4 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.tip-card p {
  color: #7f8c8d;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* 新增：拍照求助按钮样式 */
.btn-camera-help {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: white;
  border: none;
  padding: 18px 25px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-camera-help:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(155, 89, 182, 0.3);
}

/* 响应式设计 - 新增组件 */
@media (max-width: 768px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .tips-container {
    grid-template-columns: 1fr;
  }
  
  .service-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .history-details {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .setting-card,
  .tip-card {
    padding: 15px;
  }
  
  .service-item {
    padding: 15px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }
}

/* 新增：空状态样式 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 15px;
  border: 2px dashed #dee2e6;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-state h4 {
  color: #6c757d;
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 600;
}

.empty-state p {
  color: #868e96;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
  max-width: 300px;
  margin: 0 auto;
}

/* 空状态悬停效果 */
.empty-state:hover {
  border-color: #3498db;
  background: linear-gradient(135deg, #f1f3f4, #e3e6ea);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* 新增：新用户提示信息样式 */
.new-user-tip {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, #e8f5e8, #d4edda);
  border-radius: 12px;
  border: 1px solid #c3e6cb;
  text-align: center;
}

.new-user-tip .tip-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.new-user-tip p {
  color: #155724;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}
